const state = {
    name: "小明",
    sum: 0
};
const mutations = {
    ADD(state, value) {
        state.name = '小',
            state.sum += value
    }
};
const actions = {
    add(context, value) {
        context.commit('ADD', value)
    }
};
const getters = {};
export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
};